.bili-nav{
    display:flex;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    /*设置搜索栏不会超出屏幕*/
    box-sizing: border-box;

}
/*导航栏左侧，设置横向显示的样式*/
.left-entry{
    display: flex;
}

.left-entry .entry-title{
    display: flex;
    align-items: center;
    height: 64px;
    color: white;
    margin-right: 15px;

}

.left-entry .entry-title svg{
margin-right: 6px;

}

/*导航栏中间的搜索区域*/
.center-search-container{
    flex: 1;
    height: 40px;
    /*上下宽度为0，右侧为48px，左侧为4px，上右下左，顺时针方向*/
    padding :0 48px 0 4px;
    /*圆角效果*/
    border-radius: 8px;
    /*边框圆角*/
    border: 1px solid #e3e5e7;
    background-color: #f1f2f3;
    display: flex;
    align-items: center;
    position: relative;
}

.center-search-container :hover{
background-color:#fff;
}

.center-search-container .nav-search-content{
display: flex;
height: 20px;
width: 100%;
padding: 0 8px;
}

.nav-search-content .nav-search-input{
    flex:1;
    background-color: transparent;
    line-height: 20px;
    overflow: hidden;
    padding: 8px;
}

.nav-search-button{
    position: absolute;
    top: 4px;
    right: 7px;
    display: flex;/*居中用*/
    align-items: center;/*居中用*/
    justify-content: center;/*水平方向居中用这一行*/
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .3s;
}


.nav-search-container .nav-search-button:hover{
    background-color: #e3e4e5;
}


/*导航栏右侧*/
.right-entry{
    margin: 10px;
    display: flex;
    align-items: center;
}

/*一般来说先写尺寸的，再写颜色的*/
.right-entry .header-avatar{
    height: 50px;
    width: 50px;
    padding-right: 10px;
    position: relative;
}

.right-entry .header-avatar a{
    position: absolute;
    top: 6px;
    left: 10px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background-color: #00aeec;
    display: flex;
    justify-content: center;
    border: 2px solid #fff;
    color: #fff;
}

.right-entry .right-entry-item{
    min-width: 50px;
    margin-right: 4px;

}

.right-entry .right-entry-item a{
    display: flex;
    flex-direction: column;
    align-items: center;

}

.right-entry-item a span{
    font-size: 13px;
}

/*投稿部分的粉色方盒子*/
.right-entry .upload{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 34px;
    line-height: 34px;
    border-radius: 8px;
    color: #fff;
    background-color: #fb7299;
    margin-left: 10px;
}

.right-entry .upload span{
    margin-left: 5px;

}

/*banner的部分*/
.bili-nav{
    position: absolute;
    top:0;
    z-index: 1000;
}
.bili-banner{
    position: relative;
    height: 155px;
    width: 100%;
    overflow: hidden;

}

.bili-banner img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/*设置logo部分的容器*/
.bili-banner .logo{
    width: 100%;
    height: 100%;
    padding: 0 64px;
    display: flex;
    align-items: flex-end;    
}

.bili-banner .logo a{
    position: relative;
    /*添加position变为行内块，让宽高设置生效*/
    width: 162px;
    height: 78px;
    margin-bottom: 10px;
}

.bili-banner .mask{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,.4),transparent);

}
/*频道区域*/
/*频道区域左侧*/
.bili-channel{
    height: 110px;
    padding: 0 60px;
    display: flex;
    align-items: center;
}

.bili-channel .channel-icons{
    display: flex;
}
.bili-channel .channel-icons a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 24px;
}

.bili-channel .icon-bg{
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 6px;
}

.bili-channel .icon-bg_dynamic{
    background-color: orange;
}
.bili-channel .icon-bg_popular{
    background-color: rgb(204, 66, 66);
}
.bili-channel .icon-bg_channel{
    background-color: rgb(123, 205, 0);
}

/*设置图标尺寸*/
.bili-channel .bili-icons svg{
    width: 25px;
    height: 25px;
}

.bili-channel  span{
    text-align: center;
}

/*中间两排频道*/
.bili-channel .right-channel-container{
    width: 100%;
    display: flex;
}

.bili-channel .channel-items_left{
    display: grid;
    grid-template-columns: repeat(11,1fr);
    gap: 10px;
    width: 100%;

}

.bili-channel .channel-items_left a{
    height: 26px;
    line-height: 26px;
    background-color: #f6f7f8;
    border: 1px solid #f1f2f3;
    border-radius: 6px;
    text-align: #61666D;

}

/*右侧频道列表*/
.bili-channel .channel-items_right{
    width: 240px;
    display: grid;
    grid-template-rows: repeat(2,1fr);
    grid-auto-flow: column;
    row-gap: 10px;
    flex-shrink: 0;
    margin-left: 30px;
    border-left: 1px solid #e3e5e7;
}

.channel-items_right a{
    width: 100%;
    height: 28px;
    letter-spacing: 2px;/*增大文字间隙*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-items_right svg{
    width: 20px;
    height: 20px;
    margin-right: 4px;
    fill: #61666D;
}

.channel-items_right span{
    color: #61666D;
}

/*推荐列表*/
.main{
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}

.main .recommended-container{
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 20px;
    width: 100%;
}
.main .recommended-card .card-image{
    position: relative;
    border-radius: 6px;
}

.main .card-image img{
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.card-image .img-mask{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 16px 8px 6px;
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    /*设置卡片的图片部分颜色渐变*/
    background-image: linear-gradient(180deg,rgba(0,0,0,0)0%,rgba(0,0,0,.8)100%);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    
}
.card-image .img-mask .stats-left{
    flex: 1;
    display: flex;
    align-items: center;
}

.img-mask .stats-left .stats-item{
    display: flex;
    align-items: center;
    margin: 12px;
}

.img-mask svg{
    width: 18px;
    height: 18px;
    color: #fff;
    margin-left: 2px;
}

/*底部信息*/
.card-info h3{
    line-height: 22px;
    padding-right: 16px;
    font-size: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-break: anywhere;
    -webkit-line-clamp: 2;
}

.info-bottom{
    margin-top: 4px;
    display: flex;
    font-size: 13px;

}
.info-bottom a{
    color: #9499a0;
    display: flex;
    align-items: center;
}

.info-bottom svg{
    width: 17px;
    height: 17px;
    margin-right: 2px;
}

.info-bottom .info-date{
    margin-left: 4px;
}

/*滚动推荐列表部分*/
.recommended-container .carousel-area{
    grid-row: 1/3;
    grid-column: 1/3;
    border-radius: 6px;
    overflow: hidden;
    position: relative;

}

.carousel-area img{
    width: 100%;
}

.carousel-area .mask{
    width: 100%;
    height: 392px;
    position: absolute;
    top: 0;
    background-image: linear-gradient(0,#524c46 23%,transparent 35%);
    border-radius: 6px;
}

/*工具栏部分*/
.carousel-area .tools{
    width: 100%;
    position: absolute;
    bottom: 94px;
    left: 0px;
    padding: 0 15px;
    box-sizing: border-box;/*避免溢出*/
}
/*设置滚动页面标题*/
.carousel-area .tools a{
    display: flex;
    margin-bottom: 10px;
    font-size: 18px;
    color: #fff;

}

.carousel-area .tools ul{
    display: flex;
}
.carousel-area .tools li{
    width: 8px;
    height: 8px;
    margin: 4px;
    border-radius: 50%;
    background-color: #fff6;
    cursor: pointer;

}

.carousel-area .tools li.active{
    width: 14px;
    height: 14px;
    margin: 1px;
    background-color: #fff;
}


/*设置轮播左右按钮*/
.carousel-area .tools .buttons{
    position: absolute;
    bottom: 23px;
    right: 15px;
}

.tools button{
    width: 28px;
    height: 28px;
    border-radius: 8px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff1a;

}

.tools button:last-child{
    margin-right: 0;
}

.tools svg{
    width: 12px;
    height: 12px;
    color: #fff;
}


/*侧边栏部分*/
.sidebar{
    position: fixed;
    bottom: 40px;
    right: 12px;
}

.sidebar .primary-btn{
    width: 40px;
    margin-top: 6px;
    padding: 8px 0 6px;
    box-sizing: border-box;
    border: 1px solid #e3e5e7;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
}

.sidebar .primary-btn svg{
    width: 24px;
    height: 24px;
    
}

.sidebar .primary-btn .primary-btn-text{
    margin-top: 2px;
}

.primary-btn.goback{
    padding: 4px;
}

.primary-btn.top-btn{
    margin-top: 12px;

}

.sidebar .primary-btn.top-btn svg{
    width: 15px;
    height: 8px;
}
